package com.vegetable.modules.entity.baseData;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 资金账户
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="FundAccount对象", description="资金账户")
public class FundAccount extends BaseEntity {

    @ApiModelProperty(value = "账户名称")
    private String accountName;

    @ApiModelProperty(value = "账户关联卡号")
    private String cardNo;

    @ApiModelProperty(value = "账户类型：0现金，1微信，2支付宝，3中国银行卡 4农业银行 5建设银行 6工商银行 7潍坊银行 8农信 ")
    private Integer accountType;

    @ApiModelProperty(value = "总收款")
    private BigDecimal totalReceipts;

    @ApiModelProperty(value = "总支出")
    private BigDecimal totalExpenditure;

    @ApiModelProperty(value = "初始结余")
    private BigDecimal initialBalance;


    @ApiModelProperty(value = "账户结余")
    private BigDecimal totalBalance;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "删除标识0未删除，1删除")
    private Integer isDel;

    @ApiModelProperty(value = "创建者ID")
    private Long createUserId;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
